#!/user/bin/env python3
# -*- coding: utf-8 -*-

## app
from flask import Flask, render_template, request, jsonify

# import requests
# import json
#
#
# def encapsulationDataObject(importPath, object):
#     print(object)
#
#     url = 'http://localhost:8081/insertData'
#     files = {'file': (open(importPath, 'rb'))}
#     result = jsonData(object)
#     data = {'data': json.dumps(result, ensure_ascii=False)}
#     resp = requests.post(url, files=files, data=data)
#     print(resp.text)
#
#
# def jsonData(obj):
#     if isinstance(obj, set):
#         return list(obj)
#         raise TypeError
